// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.sys.entity.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * SalesWithdraw
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "sales_withdraw", autoResultMap = true)
@Schema(title = "销售退货单")
public class SalesWithdraw implements Serializable {

  /**
   * 退货单号
   */
  @TableField(value = "`rma_order_no`")
  @Schema(title = "退货单号")
  private String rmaOrderNo;

  /**
   * 退货类型 (0 - 买家退货; 1 - 物流退货; )
   */
  @TableField(value = "`sales_type`")
  @Schema(title = "退货类型")
  private String salesType;

  /**
   * 退货仓库
   */
  @TableField(value = "`whname`")
  @JoinField(Warehouse.class)
  @Schema(title = "退货仓库")
  private Long whname;

  /**
   * 店铺
   */
  @TableField(value = "`store_name`")
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private Long storeName;

  /**
   * 系统单号
   */
  @TableField(value = "`global_order_no`")
  @Schema(title = "系统单号")
  private String globalOrderNo;

  /**
   * 退货原因
   */
  @TableField(value = "`reason`")
  @Schema(title = "退货原因")
  private String reason;

  /**
   * 订单状态 (0 - 待收货; 1 - 已完成; 2 - 已作废; )
   */
  @TableField(value = "`status`")
  @Schema(title = "订单状态")
  private String status;

  /**
   * 物流商
   */
  @TableField(value = "`logistics_provider_name`")
  @Schema(title = "物流商")
  private String logisticsProviderName;

  /**
   * 跟踪号
   */
  @TableField(value = "`tracking_no`")
  @Schema(title = "跟踪号")
  private String trackingNo;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @JoinField(SysUser.class)
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 预计到货时间
   */
  @TableField(value = "`pre_arrival_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "预计到货时间")
  private java.util.Date preArrivalTime;

  /**
   * 三方仓预报 (0 - 不预报; 1 - 预报; )
   */
  @TableField(value = "`has_prediction`")
  @Schema(title = "三方仓预报")
  private String hasPrediction;

  /**
   * 备注
   */
  @TableField(value = "`remark`")
  @Schema(title = "备注")
  private String remark;

  /**
   * 物流类型
   */
  @TableField(value = "`logistics_type`")
  @Schema(title = "物流类型")
  private String logisticsType;

  /**
   * 站点
   */
  @TableField(value = "`site`")
  @Schema(title = "站点")
  private String site;

  /**
   * 平台
   */
  @TableField(value = "`platform`")
  @Schema(title = "平台")
  private String platform;

  /**
   * 店铺编码
   */
  @TableField(value = "`scode`")
  @Schema(title = "店铺编码")
  private String scode;

  /**
   * 仓库编码
   */
  @TableField(value = "`whcode`")
  @Schema(title = "仓库编码")
  private String whcode;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 店铺id
   */
  @TableField(value = "`sid`")
  @Schema(title = "店铺id")
  private Long sid;

  /**
   * 退货仓库id
   */
  @TableField(value = "`wid`")
  @Schema(title = "退货仓库id")
  private Long wid;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 售后类型 (1 - 退货退款; 0 - 退款; 2 - 退货; )
   */
  @TableField(value = "`after_sale_type`")
  @Schema(title = "售后类型")
  private String afterSaleType;

  /**
   * 退款方式
   */
  @TableField(value = "`interval_days`")
  @Schema(title = "退款方式")
  private String intervalDays;

  /**
   * 标签
   */
  @TableField(value = "`lable`")
  @Schema(title = "标签")
  private String lable;

  /**
   * 自发货截单
   */
  @TableField(value = "`order`")
  @Schema(title = "自发货截单")
  private String order;

  /**
   * 仓库名称
   */
  @TableField(value = "`wname`")
  @Schema(title = "仓库名称")
  private String wname;

  /**
   * 店铺名称
   */
  @TableField(value = "`sname`")
  @Schema(title = "店铺名称")
  private String sname;
}
